package com.example.xyh.dao;

import com.example.xyh.entity.OrderList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IOrderListDao extends JpaRepository<OrderList, Integer> {
    List<OrderList> findByItemId(Integer item_id);

    List<OrderList> findByOrderId(Integer order_id);

    OrderList findByOrderIdAndItemId(Integer order_id, Integer item_id);

    OrderList save(OrderList orderList);

    List<OrderList> findByCustomerId(Integer customer_id);
}
